import java.io.*;
import java.awt.*;
public class Backend
{
	public boolean command(String command)
	{
		try
		{
			Desktop deskT =Desktop.getDesktop();
			deskT.browse(new java.net.URI(command));
			return true;
		}
		catch(java.net.URISyntaxException ex) {
			System.out.println(ex);
			return false;
		}
		catch(IOException ex)
		{
			ex.printStackTrace();
			System.out.println(ex);
			return false;
		}
	}
	public boolean exp(File dir)
	{
		try
		{
			return command("explorer " +dir.getCanonicalPath());
		}
		catch(IOException ex)
		{
			ex.printStackTrace();
			System.out.println(ex);
			return false;
		}
	}
}
